package org.mysocial.services.business;

import javax.ejb.Local;

import org.mysocial.datamodel.Account;
import org.mysocial.datamodel.Message;
import org.mysocial.datamodel.MultipleDestinationMessage;
import org.mysocial.datamodel.SingleDestinationMessage;

@Local
public interface MessageBusiness
{
	public SingleDestinationMessage sendMessage(String text, Account fromAccount,
	    Account toAccount);

	public MultipleDestinationMessage sendMessage(String text,
	    Account fromAccount, Account... toAccount);

	public void markRead(Message message, Account account);

	public void remove(Message message);

	public SingleDestinationMessage reply(SingleDestinationMessage message,
	    String text);

	public MultipleDestinationMessage reply(Account fromAccount, MultipleDestinationMessage message,
	    String text);
}
